<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets">

<h:head>
	<title><ui:insert name="pageTitle">Page Title</ui:insert></title>
	<style type="text/css">
body {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 14px;
}

.header {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 18px;
}

.bottom {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 9px;
	text-align: center;
	vertical-align: middle;
	color: #8E969D;
}
</style>
</h:head>
<body bgcolor="#ffffff">
	<div align="center">
		<p:layout fullPage="true">

			<!-- Banner -->
			<p:layoutUnit position="north" size="123">
				<ui:insert name="topo">
					<h:panelGrid columns="2" style="width:100%">
						<h:graphicImage url="/templates/Imagens/add-user.png"
							style="width:110px;height:110px; margin-left:20px" />
						<h:form>
							<div align="right">
								Seja bem vindo(a): #{loginBean.gestorSelecionado.login} <br /><b>
								<h:commandLink action="#{loginBean.doLogout()}" value="Sair" /></b>
							</div>
						</h:form>

					</h:panelGrid>
				</ui:insert>
			</p:layoutUnit>

			<!-- Menu -->
			<p:layoutUnit position="west" size="220">
				<ui:insert name="menu">
					<h:form>
						<p:menu>
							<p:submenu label="Construtora">
								<p:menuitem url="/View/ConstrutoraLista.jsf" value="Listagem"
									icon="ui-icon-document" />
								<p:menuitem url="/View/GestoresLista.jsf" value="Gestor(es)"
									icon="ui-icon-document"
									disabled="#{construtoraBean.lista.equals(null)}" />
							</p:submenu>
							<p:submenu label="Obra">
								<p:menuitem url="/View/ObrasLista.jsf" value="Listagem"
									icon="ui-icon-document"
									disabled="#{empty construtoraBean.lista}" />
								<p:menuitem url="/View/ConfigTorreLista.jsf"
									value="Tipologia Torre" icon="ui-icon-document"
									disabled="#{empty obraBean.lista}" />
								<p:menuitem url="/View/ConfigCasaLista.jsf"
									value="Tipologia Casa" icon="ui-icon-document"
									disabled="#{empty obraBean.lista}" />
								<p:menuitem url="/View/servicosLista.jsf" value="Serviços"
									icon="ui-icon-clipboard" disabled="#{empty obraBean.lista}" />
								<p:menuitem url="/View/Cronograma.jsf" value="Cronograma"
									icon="ui-icon-clipboard"
									disabled="#{empty cronogramaBean.listaServico}" />
								<p:menuitem value="Medição" icon="ui-icon-document" />
								<p:menuitem value="Gráfico" icon="ui-icon-clipboard" />
							</p:submenu>
							<p:menuitem value="Financeiro" icon="ui-icon-clipboard" />
						</p:menu>
					</h:form>
				</ui:insert>
			</p:layoutUnit>

			<!-- Corpo -->
			<p:layoutUnit position="center" size="123">
				<ui:insert name="centro">
					<ui:insert name="body">Page Body</ui:insert>
				</ui:insert>
			</p:layoutUnit>

			<!-- Status -->
			<p:layoutUnit position="south">
				<ui:insert name="status">Copyright 2014 • Pixel Technology • Todos os direitos reservados</ui:insert>
			</p:layoutUnit>
		</p:layout>
	</div>
</body>

</html>